var express = require("express");
var router = express.Router();
const parseUrl = require("url");
var queryString = require("querystring");

// 注册
const registerRoute = (params) => {
  for (let item of params) {
    const url = `/xhy${item[0]}`;
    const source = item[1];

    router.use(url, source);
  }
};

registerRoute([
  ["/label", require("./label.js")],
  ["/note", require("./note.js")],
  ["/depature", require("./depature.js")],
]);

module.exports = router;
